<?php
/*
Template Name: Archives Page
*/
?>
<?php get_header(); ?>
<?php global $woo_options; ?>

		<?php get_sidebar('left'); ?>
		
		<div id="main">

			<div class="content-wrapper">
				<div class="content">
				
					<div class="content-inner post">
						
						<h2 class="title"><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
						
						<?php woo_post_meta(); ?>
						
						<div class="entry">
			    
						    <h3><?php _e('The Last 30 Posts', 'woothemes') ?></h3>
																			  
						    <ul>											  
						        <?php query_posts('showposts=30'); ?>		  
						        <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
						            <?php $wp_query->is_home = false; ?>	  
						            <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a> - <?php the_time($GLOBALS['woodate']); ?> - <?php echo $post->comment_count ?> <?php _e('comments', 'woothemes') ?></li>
						        <?php endwhile; endif; ?>					  
						    </ul>											  
																			  
						    <h3><?php _e('Categories', 'woothemes') ?></h3>	  
																			  
						    <ul>											  
						        <?php wp_list_categories('title_li=&hierarchical=0&show_count=1') ?>	
						    </ul>											  
						     												  
						    <h3><?php _e('Monthly Archives', 'woothemes') ?></h3>
																			  
						    <ul>											  
						        <?php wp_get_archives('type=monthly&show_post_count=1') ?>	
						    </ul>
						
						</div><!-- /.entry -->
						
					</div><!-- /.post -->
					
				</div>
			</div>
		
		</div><!-- /#main -->
		
		<?php get_sidebar('right'); ?>
		
<?php get_footer(); ?>